package cn.dapeng.designPatterns.command.t2;

public class TextEditor {
    private String fileName;
    public void openFile(String fileName) {
        this.fileName = fileName;
        System.out.println("打开文件: " + fileName);
    }

    public void saveFile() {
        System.out.println("保存文件: " + fileName);
    }

    public void closeFile() {
        System.out.println("关闭文件: " + fileName);
    }
}
